package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author xudongdong
 * @date 2020/04/23
 */
@Data
@TableName("lpr_data")
@ApiModel(value = "LPR配置信息")
public class LprConfiguration extends BaseEntity<LprConfiguration> {

    /**
     * The LprConfiguration lprDate.
     */
    @ApiModelProperty(value = "发布时间 ")
    @JsonFormat(
            timezone = "GMT+8",
            pattern = "yyyy-MM-dd"
    )
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date lprDate;
    /**
     * The LprConfiguration lprRate.
     */
    private BigDecimal lprRate;
    /**
     * The LprConfiguration lprVariety.
     */
    private String lprVariety;
    /**
     * The LprConfiguration systemEffectiveTime.
     */
    @ApiModelProperty(value = "生效时间 ")
    @JsonFormat(
            timezone = "GMT+8",
            pattern = "yyyy-MM-dd"
    )
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date systemEffectiveTime;
    /**
     * The LprConfiguration applicationPeriodStart.
     */
    private Integer applicationPeriodStart;
    /**
     * The LprConfiguration applicationPeriodEnd.
     */
    private Integer applicationPeriodEnd;

    @ApiModelProperty(value = "状态;0-失效；1-生效")
    private String status;

}
